package com.haiyi.activiti.engine.framework.database;

import com.baomidou.mybatisplus.service.IService;

import java.io.Serializable;
import java.util.List;

/**
 * <p> 服务类继承他，就可以通过链式来进行查询数据库 </p>
 *
 * <pre> Created: 2018/12/5 10:46 </pre>
 *
 * @author hlu
 * @version 1.0
 * @since JDK 1.7
 */
public interface HaiyiService<T extends Serializable,Q extends Query> extends IService<T> {

    List<T> query(Q query);

    Q createQuery();

    Long count(Q query);
}
